<div class="card-head"><h4>{{problemSetName}}</h4></div>
<div class="card-block bg-white">

  <div class="row">
    <div class="col-md-3">
      <select [(ngModel)]="problemCode" (change)="search($event)" class="width-full from-input ">
        <option value="">全部题目</option>
        <option *ngFor="let d of problemInfos;let i = index;" [value]="d.code">{{d.name}}</option>
      </select>
    </div>
    <div class="col-md-2">
      <select [(ngModel)]="creator" (change)="search($event)" class="width-full from-input">
        <option value="">所有提交</option>
        <option *ngIf="user!=null" value="{{user.code}}">我的提交</option>
      </select>
    </div>
  </div>

  <div class="box" style="margin-top: 1.25rem">
    <div class="box-body no-padding">
      <table class="table table-striped">
        <tr>
          <th>提交时间</th>
          <th>状态</th>
          <th>分数</th>
          <th>题目</th>
          <th>编译器</th>
          <th>耗时</th>
          <th>用户</th>
        </tr>

        <tr *ngFor="let d of judgeInfos; let i = index;">
          <td>{{d.createTime}}</td>
          <td><span class="font-red">{{d.statusName}}</span></td>
          <td>{{d.score}}</td>
          <td>{{d.name}}</td>
          <td>{{d.compile}}</td>
          <td>{{d.runTime}} ms</td>
          <td>{{d.creator}}</td>
        </tr>
      </table>
    </div>
    <div>
      <p-paginator [rows]="10" [totalRecords]="total" (onPageChange)="paginate($event)"></p-paginator>
    </div>
  </div>


</div>




